<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <!-- 2.准备容器 -->
  <div id="app">
    Vue的模板
    <!-- v-for="(item,index) in 数组"
      item 循环项
      index 索引值 -->
    <ul>
      <li v-for="(item,index) in foods">{{item}}------{{index}}</li>
      <li v-for="item in foods"></li>
    </ul>
  </div>
  <!-- 1.导入vue.js -->
  <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>

  <script>
    // 3创建实例化对象
    const app = new Vue({
      // 容器id
      el: '#app',
      // 数据
      data: {
        foods: [
          '鸡蛋灌饼',
          '22',
          '33',
          '444',
          '555',
          '666',
        ]
      }
    })
  </script>
</body>

</html>